package com.oa.system.entity;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Collection;
import java.util.Date;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;


import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author syb123
 * @since 2019-01-29
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_user")
@ApiModel(value = "用户表")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "公司")
    private String companyId;

    @ApiModelProperty(value = "部门id")
    private String departmentId;

    @ApiModelProperty(value = "组id")
    private String groupId;

    @ApiModelProperty(value = "岗位id")
    private String postId;

    @ApiModelProperty(value = "职务")
    private String duty;

    @ApiModelProperty(value = "指纹编号")
    private String fingerprintNumber;

    @ApiModelProperty(value = "用户姓名")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "微信ID")
    private String wechatId;

    @ApiModelProperty(value = "授权状态(1-启用  2-禁用)")
    private Integer authorizationStatus;

    @ApiModelProperty(value = "是否删除（1-已删除  2-未删除）")
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "工号")
    private String jobNo;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}